import Menu from "./menus/Menu";
import GameObject from "./GameObject"
import Utils from "./utils";
import GameConst from "./GameConst";

export default class Tutorial extends Menu{
    constructor() {
        super();
        this.pages = [];
        this.currentPage = 0;
        this.currentSequence = [];
        this.sequences = {
            0: [0, 2, 3, 5],
            1: [6, 1, 4],
            2:[8, 9]
        };
        this.tapAllowed = false;
        t.instance = this;
        //this.pages.push(new FirstGroupTapTutorial, new HighValueTapTutorial, new LineTapTutorial, new BonusTapTutorial, new BonusInfoTutorial, new ReachScoreTutorial, new BonusComboTapTutorial, new ComboInfoTutorial, new InfectCellTutorial1, new InfectCellTutorial2, new ChocoBombTutorial, new BushTutorial);
    }
}
var t = Tutorial;
    

    t.prototype.hasTutorial = function (e) {
        return this.sequences[e.toString()];
    };
    t.prototype.show = function () {
        var e = this.sequences[Match3Level.instance.levelData.levelNumber.toString()];
        this.currentSequence = [];
        for (var t = 0; t < e.length; ++t)
            this.currentSequence.push(this.pages[e[t]]);
        this.currentPage = 0;
        this.currentSequence[this.currentPage].show();
    };
    t.prototype.hide = function () {};
    t.prototype.getBonusComboCell = function (e, t) {
        return this.currentPage == 1 && this.currentSequence[this.currentPage] == this.pages[1] && Match3Level.instance.currentMove == 1 ?GameConst.episode <= 1 ? e.x < t.x ? e : t : e.x < t.x ? t : e : null;
    };
    t.prototype.checkHighValueCell = function (e) {
        return this.currentPage == 1 && this.currentSequence[this.currentPage] == this.pages[1] && Match3Level.instance.currentMove == 1 && (GameConst.episode <= 1 && e.x == 3 && e.y == 6 ||GameConst.episode == 2 && e.x == 6 && e.y == 8 ||GameConst.episode == 3 && e.x == 3 && e.y == 5 ||GameConst.episode == 4 && e.x == 3 && e.y == 4);
    };
    t.prototype.getBonusSpawnCell = function () {
        return this.currentPage == 2 && this.currentSequence[this.currentPage] == this.pages[3] ?GameConst.episode <= 1 ? Match3Level.instance.cells[2][3] :GameConst.episode <= 2 ? Match3Level.instance.cells[1][3] :GameConst.episode == 3 ? Match3Level.instance.cells[4][5] : Match3Level.instance.cells[1][6] : null;
    };
    t.prototype.nextPage = function () {
        this.currentSequence[this.currentPage].hide();
        if (this.currentPage < this.currentSequence.length - 1) {
            ++this.currentPage;
            this.currentSequence[this.currentPage].show();
        } else {
            if (this == GameConst.menuManager.current){
                GameConst.menuManager.closeCurrent();
            }
        }
    };
    t.prototype.allowTap = function (e, t) {
        return this.currentSequence[this.currentPage].allowTap(e, t);
    };
    t.prototype.onDown = function (t, n) {
        e.prototype.onDown.call(this, t, n);
        this.tapAllowed = this.allowTap(t, n);
        this.currentSequence[this.currentPage].onDown(t, n);
    };


var TutorialPage = function (e) {
    function t() {
        e.call(this);
        this.tapCells = [];
        this.isHiding = false;
        this.isShowing = false;
        this.showDelay = 0;
        this.hideDelay = 0;
        this.tutorial = Tutorial.instance;
    }
    Utils.__extends(t, e);
    t.prototype.init = function (e) {
        e.cache(0, 0,GameConst.SCREEN_W,GameConst.FULL_SCREEN_H);
        this.sprite = e;
    };
    t.prototype.onDown = function (e, t) {
        if (this.checkHide(e, t))
            this.tutorial.nextPage();
    };
    t.prototype.allowTap = function (e, t) {
        if (this.sprite.alpha < .5)
            return false;
        var n = this.tapCells.length;
        var r = Match3Level.instance.stageToGridX(e);
        var i = Match3Level.instance.stageToGridY(t);
        r = Math.floor(r);
        i = Math.floor(i);
        for (var s = 0; s < n; ++s) {
            var o = this.tapCells[s];
            if (o.x == r && o.y == i)
                return true;
        }
        return false;
    };
    t.prototype.checkHide = function (e, t) {
        return this.allowTap(e, t);
    };
    t.prototype.hide = function () {
        var e = this;
        if (!this.isHiding) {
            this.isHiding = true;
            createjs.Tween.get(this.sprite, {
                loop: false
            }).wait(this.hideDelay * 1e3).to({
                alpha: 0
            }, 300).call(function () {
                return e.removeSprite();
            });
        }
    };
    t.prototype.show = function () {
        this.isShowing = true;
        this.isHiding = false;
        if (!this.sprite.parent) {
           GameConst.game.stage.addChild(this.sprite);
            this.sprite.y =GameConst.episode <= 2 ?GameConst.SHIFT_H : 0;
            this.sprite.alpha = 0;
            createjs.Tween.get(this.sprite, {
                loop: false
            }).wait(this.showDelay * 1e3).to({
                alpha: 1
            }, 300);
        }
    };
    t.prototype.removeSprite = function () {
       Utils.removeClip(this.sprite);
    };
    return t;
}
(GameObject);
var FirstGroupTapTutorial = function (e) {
    function t() {
        e.call(this);
        if (GameConst.episode <= 1)
            this.tapCells.push(cjp(5, 1), cjp(5, 2), cjp(5, 3), cjp(4, 2), cjp(6, 2), cjp(6, 3));
        else if (GameConst.episode <= 2)
            this.tapCells.push(cjp(2, 5), cjp(3, 4), cjp(3, 5), cjp(4, 4), cjp(4, 5), cjp(4, 6), cjp(5, 6));
        else if (GameConst.episode <= 3)
            this.tapCells.push(cjp(3, 6), cjp(4, 6), cjp(5, 6), cjp(3, 7), cjp(4, 7), cjp(5, 7), cjp(5, 8));
        else if (GameConst.episode <= 4)
            this.tapCells.push(cjp(4, 3), cjp(4, 4), cjp(5, 4));
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial1");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        n.alpha = .8;
        t.addChild(n);
        var r = new Laya.Text("Tap to remove\n     jellies",GameConst.game.atlases[0]);
        r.letterSpacing = -10;
        r.spaceWidth = 25;
        r.lineHeight = 60;
        r.scaleX = r.scaleY = .9;
        r.x = 99 + 50 + (GameConst.episode <= 1 ? 0 :GameConst.episode <= 2 ? -85 :GameConst.episode == 3 ? -60 : -45);
        r.y = 340 - 10 + (GameConst.episode <= 1 ? 0 :GameConst.episode <= 2 ? -120 :GameConst.episode == 3 ? 90 : 150);
        t.addChild(r);
        this.hideDelay = .15;
        this.showDelay = .5;
        this.init(t);
    }
    Utils.__extends(t, e);
    return t;
}
(TutorialPage);
var HighValueTapTutorial = function (e) {
    function t() {
        e.call(this);
        var t = new Laya.Sprite;
        var n = 124;
        var r = Utils.createBitmap("tutorial2");
        r.scaleX = r.scaleY = 4;
        r.pivotX = 0;
        r.x = 0;
        r.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        r.alpha = .8;
        t.addChild(r);
        var i = new Laya.Text("Some jellies give\nadditional points",GameConst.game.atlases[0]);
        i.scaleX = i.scaleY = .8;
        i.letterSpacing = -10;
        i.spaceWidth = 25;
        i.lineHeight = 60;
        i.x = 99 + (GameConst.episode <= 1 ? 0 :GameConst.episode <= 2 ? 90 : -50);
        i.y = 400 + (GameConst.episode <= 1 ? 0 :GameConst.episode <= 2 ? 50 :GameConst.episode == 4 ? 80 : -80) + n;
        t.addChild(i);
        var i = new Laya.Text("Tap anywhere to continue",GameConst.game.atlases[1]);
        i.scaleX = i.scaleY = .55;
        i.letterSpacing = -10;
        i.spaceWidth = 25;
        i.lineHeight = 60;
        i.x = 45;
        i.y = 675 + n;
        t.addChild(i);
        this.hideDelay = 0;
        this.showDelay = 2.5;
        this.init(t);
    }
    Utils.__extends(t, e);
    t.prototype.allowTap = function (e, t) {
        return false;
    };
    t.prototype.checkHide = function (t, n) {
        return e.prototype.checkHide.call(this, t, n) || this.sprite.alpha > .9;
    };
    return t;
}
(TutorialPage);
var LineTapTutorial = function (e) {
    function t() {
        e.call(this);
        if (GameConst.episode <= 1)
            this.tapCells.push(cjp(3, 7), cjp(4, 7), cjp(5, 7), cjp(6, 7), cjp(7, 7));
        else if (GameConst.episode <= 2)
            this.tapCells.push(cjp(6, 2), cjp(6, 3), cjp(6, 4), cjp(6, 5), cjp(6, 6));
        else if (GameConst.episode == 3)
            this.tapCells.push(cjp(3, 7), cjp(4, 7), cjp(5, 7), cjp(6, 7));
        else
            this.tapCells.push(cjp(3, 7), cjp(4, 7), cjp(5, 7), cjp(6, 7));
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial3");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        n.alpha = .8;
        t.addChild(n);
        var r = new Laya.Text("   remove line\nto create bonus",GameConst.game.atlases[0]);
        r.letterSpacing = -10;
        r.spaceWidth = 25;
        r.lineHeight = 60;
        r.x = 130 + (GameConst.episode <= 1 ? 0 :GameConst.episode <= 2 ? 55 : -30);
        r.y = 340 + 50 + (GameConst.episode <= 1 ? 0 : 85);
        r.scaleX = r.scaleY = .85;
        t.addChild(r);
        this.hideDelay = .15;
        this.showDelay = 2;
        this.init(t);
    }
    Utils.__extends(t, e);
    return t;
}
(TutorialPage);
var BonusTapTutorial = function (e) {
    function t() {
        e.call(this);
        if (GameConst.episode <= 1)
            this.tapCells.push(cjp(0, 3), cjp(1, 3), cjp(2, 3), cjp(0, 2));
        else if (GameConst.episode <= 2)
            this.tapCells.push(cjp(0, 3), cjp(0, 4), cjp(0, 4), cjp(1, 3));
        else if (GameConst.episode == 3)
            this.tapCells.push(cjp(3, 5), cjp(4, 5), cjp(3, 6), cjp(4, 6));
        else
            this.tapCells.push(cjp(1, 6), cjp(1, 7), cjp(1, 8));
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial4");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        n.alpha = .8;
        t.addChild(n);
        var r = new Laya.Text("activate bonus",GameConst.game.atlases[0]);
        r.letterSpacing = -10;
        r.spaceWidth = 25;
        r.lineHeight = 60;
        r.x = 35 + (GameConst.episode <= 1 ? 0 :GameConst.episode <= 2 ? 45 :GameConst.episode == 3 ? 55 : 10);
        r.y = 240 + 90 + (GameConst.episode == 3 ? 100 :GameConst.episode == 4 ? 160 : 0);
        r.scaleX = r.scaleY = .7;
        t.addChild(r);
        this.hideDelay = .15;
        this.showDelay = 1.5;
        this.init(t);
    }
    Utils.__extends(t, e);
    return t;
}
(TutorialPage);
var BonusInfoTutorial = function (e) {
    function t() {
        e.call(this);
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial5");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        n.alpha = .85;
        t.addChild(n);
        var r =GameConst.episode >= 3 ? 124 : 0;
        var i = new Laya.Text("line length determines\n       bonus power",GameConst.game.atlases[0]);
        i.scaleX = i.scaleY = .85;
        i.letterSpacing = -10;
        i.spaceWidth = 25;
        i.lineHeight = 60;
        i.x = 25 - 20;
        i.y = 140 - 30 - 80 + r;
        t.addChild(i);
        var s = -40;
        var o = 0;
        for (var u = 0; u < 3; ++u) {
            var a = .85;
            var f = 250 + u * 90 * a;
            for (var l = 0; l < 4 + u; ++l) {
                var c = createSpriteFromSpritesheet("orange");
                c.scaleX = c.scaleY = a;
                c.x = 100 + (l + (2 - u)) * 60 * c.scaleX + s;
                c.y = f + o + r;
                t.addChild(c);
            }
            var i = new Laya.Text("-",GameConst.game.atlases[1]);
            i.x = 340 + 100 - 15 - 5 + s;
            i.y = f - 30 + 5 + o + r;
            t.addChild(i);
            for (var l = 0; l < (u == 0 ? 2 : 1); ++l) {
                var c = createSpriteFromSpritesheet(u == 0 ? l == 0 ? "orange horizontal" : "orange vertical" : u == 1 ? "orange bomb" : "bonus color");
                c.scaleX = c.scaleY = 1;
                c.pivotX = c.getBounds().width / 2;
                c.pivotY = c.getBounds().height / 2;
                c.x = 400 + l * 65 + 100 + s;
                c.y = f + 20 + o + r;
                t.addChild(c);
            }
        }
        var i = new Laya.Text("Tap anywhere to continue",GameConst.game.atlases[1]);
        i.scaleX = i.scaleY = .55;
        i.letterSpacing = -10;
        i.spaceWidth = 25;
        i.lineHeight = 60;
        i.x = 45;
        i.y = 660 + r;
        t.addChild(i);
        this.hideDelay = 0;
        this.showDelay = .5;
        this.init(t);
    }
    Utils.__extends(t, e);
    t.prototype.allowTap = function (e, t) {
        return false;
    };
    t.prototype.checkHide = function (t, n) {
        return e.prototype.checkHide.call(this, t, n) || this.sprite.alpha > .9;
    };
    return t;
}
(TutorialPage);
var ReachScoreTutorial = function (e) {
    function t() {
        e.call(this);
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial6");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        var r =GameConst.episode >= 3 ? 124 : 0;
        n.alpha = .8;
        t.addChild(n);
        var i = GameConst.LevelManager.data[0].customData;
        var s = new Laya.Text("    Continue and\ncollect " + i + " points!",GameConst.game.atlases[0]);
        s.scaleX = s.scaleY = .92;
        s.letterSpacing = -10;
        s.spaceWidth = 25;
        s.lineHeight = 60;
        s.x = 50;
        s.y = 240 - 100 + r;
        t.addChild(s);
        var s = new Laya.Text(GameConst.levelManager.data[0].movesLeft - 3 + " moves left!",GameConst.game.atlases[0]);
        s.scaleX = s.scaleY = 1;
        s.letterSpacing = -10;
        s.spaceWidth = 35;
        s.lineHeight = 60;
        s.x = 100;
        s.y = 240 + 66 + r;
        t.addChild(s);
        var s = new Laya.Text("Tap anywhere to continue",GameConst.game.atlases[1]);
        s.scaleX = s.scaleY = .55;
        s.letterSpacing = -10;
        s.spaceWidth = 25;
        s.lineHeight = 60;
        s.x = 45;
        s.y = 660 + r;
        t.addChild(s);
        this.hideDelay = 0;
        this.showDelay = 2.6;
        this.init(t);
    }
    Utils.__extends(t, e);
    t.prototype.allowTap = function (e, t) {
        return false;
    };
    t.prototype.checkHide = function (t, n) {
        return e.prototype.checkHide.call(this, t, n) || this.sprite.alpha > .9;
    };
    return t;
}
(TutorialPage);
var BonusComboTapTutorial = function (e) {
    function t() {
        e.call(this);
        if (GameConst.episode <= 1)
            this.tapCells.push(cjp(1, 4), cjp(1, 5), cjp(1, 6), cjp(2, 5), cjp(2, 6), cjp(2, 7), cjp(3, 4), cjp(3, 5), cjp(3, 7), cjp(3, 8), cjp(3, 9), cjp(4, 7), cjp(4, 8));
        else if (GameConst.episode <= 2)
            this.tapCells.push(cjp(2, 6), cjp(2, 7), cjp(3, 7), cjp(3, 8), cjp(4, 5), cjp(4, 6), cjp(4, 8), cjp(4, 9), cjp(5, 5), cjp(5, 7), cjp(5, 8), cjp(6, 5), cjp(6, 6), cjp(6, 7));
        else if (GameConst.episode == 3)
            this.tapCells.push(cjp(3, 3), cjp(4, 3), cjp(5, 3), cjp(2, 4), cjp(3, 4), cjp(5, 4), cjp(4, 5), cjp(5, 5), cjp(2, 6), cjp(3, 6), cjp(4, 6), cjp(4, 7), cjp(5, 7), cjp(5, 8), cjp(4, 9), cjp(5, 9));
        else
            this.tapCells.push(cjp(3, 7), cjp(3, 6), cjp(3, 5), cjp(4, 5), cjp(4, 4), cjp(4, 3), cjp(5, 3), cjp(5, 2), cjp(5, 1));
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial7");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y =GameConst.episode <= 2 ? 3 - 9 : 0;
        n.alpha = .8;
        t.addChild(n);
        var r = new Laya.Text("  Combine bonuses\nto enchance them!",GameConst.game.atlases[0]);
        r.letterSpacing = -10;
        r.spaceWidth = 25;
        r.lineHeight = 60;
        r.x = 210 + (GameConst.episode <= 1 ? 0 : -90);
        r.y = 340 + 67 + (GameConst.episode <= 1 ? 0 :GameConst.episode == 4 ? -230 : -110);
        r.scaleX = r.scaleY = .7;
        t.addChild(r);
        this.hideDelay = .15;
        this.showDelay = .5;
        this.init(t);
    }
    Utils.__extends(t, e);
    return t;
}
(TutorialPage);
var ComboInfoTutorial = function (e) {
    function t() {
        e.call(this);
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial5");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.x = 0;
        n.y = 3 - 9;
        n.alpha = .85;
        t.addChild(n);
        var r = new Laya.Text(" Combine bonuses\nto enchance them!",GameConst.game.atlases[0]);
        r.scaleX = r.scaleY = .95;
        r.letterSpacing = -10;
        r.spaceWidth = 25;
        r.lineHeight = 60;
        r.x = 40;
        r.y = 140 - 30 - 80;
        t.addChild(r);
        var i = -40;
        var s = 0;
        for (var o = 0; o < 4; ++o) {
            for (var u = 0; u < o + 4; ++u) {
                var a = Math.random() < .25;
                var f =Utils.getInt(3);
                var l = createSpriteFromSpritesheet(a ? f == 0 ? "blue horizontal" : f == 1 ? "blue vertical" : "blue bomb" : "blue");
                l.x = 140 + u * 60;
                l.y = 250 + o * 60;
                t.addChild(l);
            }
        }
        var r = new Laya.Text("Tap anywhere to continue",GameConst.game.atlases[1]);
        r.scaleX = r.scaleY = .55;
        r.letterSpacing = -10;
        r.spaceWidth = 25;
        r.lineHeight = 60;
        r.x = 45;
        r.y = 660;
        t.addChild(r);
        this.hideDelay = 0;
        this.showDelay = 2.5;
        this.init(t);
    }
    Utils.__extends(t, e);
    t.prototype.allowTap = function (e, t) {
        return false;
    };
    t.prototype.checkHide = function (t, n) {
        return e.prototype.checkHide.call(this, t, n) || this.sprite.alpha > .9;
    };
    return t;
}
(TutorialPage);
var InfectCellTutorial1 = function (e) {
    function t() {
        e.call(this);
        if (GameConst.episode <= 3)
            this.tapCells.push(cjp(8, 4), cjp(9, 4), cjp(8, 5), cjp(9, 5));
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial8");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.alpha = .8;
        t.addChild(n);
        var r = ["remove group to", "free water cells"];
        for (var i = 0; i < 2; ++i) {
            var s = new Laya.Text(r[i],GameConst.game.atlases[0]);
            s.letterSpacing = -10;
            s.spaceWidth = 25;
            s.lineHeight = 60;
            s.x = 235 + i * -15;
            s.y = 335 + i * 50;
            s.scaleX = s.scaleY = .7;
            t.addChild(s);
        }
        this.hideDelay = .25;
        this.showDelay = .5;
        this.init(t);
    }
    Utils.__extends(t, e);
    return t;
}
(TutorialPage);
var InfectCellTutorial2 = function (e) {
    function t() {
        e.call(this);
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial9");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.alpha = .8;
        t.addChild(n);
        var r = [" water spreads", "on near cells"];
        for (var i = 0; i < 2; ++i) {
            var s = new Laya.Text(r[i],GameConst.game.atlases[0]);
            s.letterSpacing = -10;
            s.spaceWidth = 25;
            s.lineHeight = 60;
            s.x = 90 + i * 55;
            s.y = 295 + i * 60;
            s.scaleX = s.scaleY = .8;
            t.addChild(s);
        }
        var s = new Laya.Text("Tap anywhere to continue",GameConst.game.atlases[1]);
        s.scaleX = s.scaleY = .55;
        s.letterSpacing = -10;
        s.spaceWidth = 25;
        s.lineHeight = 60;
        s.x = 45;
        s.y = 760;
        t.addChild(s);
        this.hideDelay = .25;
        this.showDelay = 1.2;
        this.init(t);
    }
    Utils.__extends(t, e);
    t.prototype.allowTap = function (e, t) {
        return false;
    };
    t.prototype.checkHide = function (t, n) {
        return e.prototype.checkHide.call(this, t, n) || this.sprite.alpha > .9;
    };
    return t;
}
(TutorialPage);
var ChocoBombTutorial = function (e) {
    function t() {
        e.call(this);
        if (GameConst.episode == 4)
            this.tapCells.push(cjp(5, 7), cjp(6, 7), cjp(7, 7));
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial8");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.alpha = .8;
        t.addChild(n);
        var r = ["tap to activate", "chocolate bomb"];
        for (var i = 0; i < 2; ++i) {
            var s = new Laya.Text(r[i],GameConst.game.atlases[0]);
            s.letterSpacing = -10;
            s.spaceWidth = 25;
            s.lineHeight = 60;
            s.x = 225 + i * -0;
            s.y = 435 + i * 50;
            s.scaleX = s.scaleY = .75;
            t.addChild(s);
        }
        this.hideDelay = .25;
        this.showDelay = .5;
        this.init(t);
    }
    Utils.__extends(t, e);
    return t;
}
(TutorialPage);
var BushTutorial = function (e) {
    function t() {
        e.call(this);
        var t = new Laya.Sprite;
        var n = Utils.createBitmap("tutorial9");
        n.scaleX = n.scaleY = 4;
        n.pivotX = 0;
        n.alpha = .8;
        t.addChild(n);
        var r = ["poisonous plants need", "to be removed twice"];
        for (var i = 0; i < r.length; ++i) {
            var s = new Laya.Text(r[i],GameConst.game.atlases[0]);
            s.letterSpacing = -10;
            s.spaceWidth = 25;
            s.lineHeight = 60;
            s.x = 55 + i * 20;
            s.y = 385 + i * 55;
            s.scaleX = s.scaleY = .75;
            t.addChild(s);
        }
        var s = new Laya.Text("Tap anywhere to continue",GameConst.game.atlases[1]);
        s.scaleX = s.scaleY = .55;
        s.letterSpacing = -10;
        s.spaceWidth = 25;
        s.lineHeight = 60;
        s.x = 45;
        s.y = 760;
        t.addChild(s);
        this.hideDelay = .25;
        this.showDelay = .3;
        this.init(t);
    }
    Utils.__extends(t, e);
    t.prototype.allowTap = function (e, t) {
        return false;
    };
    t.prototype.checkHide = function (t, n) {
        return e.prototype.checkHide.call(this, t, n) || this.sprite.alpha > .9;
    };
    return t;
}
(TutorialPage);